<style>
    .switch input{
        margin-bottom: 20px;
    }
    .switch label{
        line-height: 30px;
        margin-left: 10px;
    }
    .switch .bootstrap-switch{
        float: right;
        margin-right: 10px;
    }
    body{
        background-color: #f9f9f9;
    }
</style>
<div class="switch">
{% for type in userType %}
    <div style="padding:10px 0;">
        <input type="checkbox" value="{{ type['type'] }}" {% if type['check'] is defined %}checked{% endif %}/>
        <label>{{ type['name'] }}</label>
    </div>
{% endfor %}
</div>